package com.yz.platform.modules.biz.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.yz.platform.modules.biz.dao.OrderDetailsDao;
import com.yz.platform.modules.biz.entity.OrderDetailsEntity;
import com.yz.platform.modules.biz.service.OrderDetailsService;



@Service("orderDetailsService")
public class OrderDetailsServiceImpl implements OrderDetailsService {
	@Autowired
	private OrderDetailsDao orderDetailsDao;
	
	@Override
	public OrderDetailsEntity queryObject(Integer id){
		return orderDetailsDao.queryObject(id);
	}
	
	@Override
	public List<OrderDetailsEntity> queryList(Map<String, Object> map){
		return orderDetailsDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return orderDetailsDao.queryTotal(map);
	}
	
	@Override
	public void save(OrderDetailsEntity orderDetails){
		orderDetailsDao.save(orderDetails);
	}
	
	@Override
	public void update(OrderDetailsEntity orderDetails){
		orderDetailsDao.update(orderDetails);
	}
	
	@Override
	public void delete(Integer id){
		orderDetailsDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		orderDetailsDao.deleteBatch(ids);
	}
	
}
